home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 273_01 / upcase.cc < prev    next >
Text File  |  1987-09-26  |  222b  |  11 lines

  1. #include <ctype.h>
  2. upcase(char *str)
  3. /* This will convert the string pointed to by *str to uppercase */
  4. {
  5.    while (*str) {
  6.       if (islower(*str))
  7.          *str = toupper(*str);
  8.       str++; }
  9.    return(0);
  10. }
  11.